using System.Collections.Generic;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.NoticeConfigs;

[SugarTable("EmailRecord", "邮件记录")]
[SysTable]
public class EmailRecord : EntityTenant
{
	/// <summary>
	/// 发件人
	/// </summary>
	public string FromEmail { get; set; }

	/// <summary>
	/// 主题
	/// </summary>
	public string Subject { get; set; }

	/// <summary>
	/// 内容
	/// </summary>
	[SugarColumn(ColumnDescription = "内容", ColumnDataType = "varcharmax,longtext,text,clob")]
	public string Body { get; set; }

	/// <summary>
	/// 收件人列表
	/// </summary>
	[SugarColumn(IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
	public List<string> ToEmails { get; set; }

	/// <summary>
	/// 发送结果
	/// </summary>
	public string? Result { get; set; }
}
